/*
 * @Author: wangyifei 844650674@qq.com
 * @Date: 2022-11-27 10:22:27
 * @LastEditors: wangyifei 844650674@qq.com
 * @LastEditTime: 2022-11-27 13:12:35
 * @FilePath: \management_system_template\admin-server\router\user.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
const express = require("express");
const router = express.Router();
const funCtrl = require("../controller/fun");

router.post("/fun", funCtrl.addFun);
router.get("/fun", funCtrl.getFun);
router.get("/fun/:id", funCtrl.getFunById);
router.delete("/fun/:id", funCtrl.deleteFun);
router.post("/fun/:id", funCtrl.updateFun);
router.post("/funParams/:id", funCtrl.updateFunParams);

module.exports = router;
